package mv.wap;

/**
 * Class description...
 *
 * @author mvu
 */
public class ListLayout extends Element{

  public ListLayout(Element... children){
    super(children);
  }

  @Override
  String toHtml(Element parent) {
    return build(new BlockRunner(){
      public void append(StringBuffer br) {
        br.append("<ul>");
        for(Element e : getChildren()){
          br.append("<li>").append(e.toHtml(ListLayout.this)).append("</li>");
        }
        br.append("</ul>");
      }
    });
  }
}
